package ink.ykb.rpn;

/**
 * 双向链表链结点对象
 * 
 */
public class Link<E> {
	
	private E data;
	
	private Link<E> next;
	
	private Link<E> previous;

	
	public Link(E data) {
		super();
		this.data = data;
	}

	public E getData() {
		return data;
	}


	public void setData(E data) {
		this.data = data;
	}


	public Link<E> getNext() {
		return next;
	}


	public void setNext(Link<E> next) {
		this.next = next;
	}
	
	public Link<E> getPrevious() {
		return previous;
	}

	public void setPrevious(Link<E> previous) {
		this.previous = previous;
	}

	@Override
	public String toString() {
		return "Link [data=" + data + "]";
	}
	
	

}
